﻿using System;
using System.Collections.Generic;
using System.Text;
using GFrame.Shadow;

namespace EZCRS.HCMS.Entity
{
    //GFrame Entity

    [GTable("HCRS_InventoryPlan")]
    public class HCRS_InventoryPlan
    {

        private int _id;
        private int _pid;
        private int _quota;
        private int _inventory;

        private string _roomcode;
        private string _plancode;

        private DateTime _createdate;
        private DateTime _startdate;
        private DateTime _enddate;

        private bool _unit; //true:百分比， false:值
        private bool _roomlevel;

        private int _min;
        private int _max;
        private int _adv;
        private string _state;
        private string _week;


        private string _gua;
        private string _cxl;
        private float _rate1;
        private float _rate2;
        private float _rate3;
        private float _rate4;
        private float _bed;

        private bool _bf;
        private int _bfNum;
        private float _bfrate;

        [GField("ID", FieldTypeEnum.PK, true)]
        public int ID
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }

        }

        [GField("PID")]
        public int PID
        {
            get
            {
                return _pid;
            }
            set
            {
                _pid = value;
            }

        }

        [GField("PlanQuota")]
        public int PlanQuota
        {
            get
            {
                return _quota;
            }
            set
            {
                _quota = value;
            }

        }

        [GField("RoomInventory")]
        public int RoomInventory
        {
            get
            {
                return _inventory;
            }
            set
            {
                _inventory = value;
            }

        }

        [GField("RoomCode")]
        public string RoomCode
        {
            get
            {
                return _roomcode;
            }

            set
            {
                _roomcode = value;
            }
        }

        [GField("PlanCode")]
        public string PlanCode
        {
            get
            {
                return _plancode;
            }

            set
            {
                _plancode = value;
            }
        }

        [GField("CreateDate")]
        public DateTime CrateDate
        {
            get
            {
                return _createdate;
            }

            set
            {
                _createdate = value;
            }
        }

        [GField("StartDate")]
        public DateTime StartDate
        {
            get
            {
                return _startdate;
            }

            set
            {
                _startdate = value;
            }
        }

        [GField("EndDate")]
        public DateTime EndDate
        {
            get
            {
                return _enddate;
            }

            set
            {
                _enddate = value;
            }
        }

        [GField("RoomLevel")]
        public bool RoomLevel
        {
            get
            {
                return _roomlevel;
            }
            set
            {
                _roomlevel = value;
            }
        }

        [GField("QuotaUnit")]
        public bool QuotaUnit
        {
            get
            {
                return _unit;
            }
            set
            {
                _unit = value;
            }
        }

        [GField("Min")]
        public int Min
        {
            get
            {
                return _min;
            }
            set
            {
                _min = value;
            }

        }

        [GField("Max")]
        public int Max
        {
            get
            {
                return _max;
            }
            set
            {
                _max = value;
            }

        }

        [GField("AdvHour")]
        public int AdvanceHour
        {
            get
            {
                return _adv;
            }
            set
            {
                _adv = value;
            }

        }


        [GField("RoomState")]
        public string State
        {
            get
            {
                return _state;
            }
            set
            {
                _state = value;
            }

        }

        [GField("WeekString")]
        public string WeekString
        {
            get
            {
                return _week;
            }
            set
            {
                _week = value;
            }

        }


        [GField("Gua")]
        public string Gua
        {
            get
            {
                return _gua;
            }
            set
            {
                _gua = value;
            }

        }

        [GField("Cxl")]
        public string Cxl
        {
            get
            {
                return _cxl;
            }
            set
            {
                _cxl = value;
            }

        }

        [GField("Rate1")]
        public float Rate1
        {
            get
            {
                return _rate1;
            }
            set
            {
                _rate1 = value;
            }

        }

        [GField("Rate2")]
        public float Rate2
        {
            get
            {
                return _rate2;
            }
            set
            {
                _rate2 = value;
            }

        }

        [GField("Rate3")]
        public float Rate3
        {
            get
            {
                return _rate3;
            }
            set
            {
                _rate3 = value;
            }

        }

        [GField("Rate4")]
        public float Rate4
        {
            get
            {
                return _rate4;
            }
            set
            {
                _rate4 = value;
            }

        }

        [GField("Bed")]
        public float Bed
        {
            get
            {
                return _bed;
            }
            set
            {
                _bed = value;
            }

        }



        [GField("BF")]
        public bool HasBreakfast
        {
            get
            {
                return _bf;
            }
            set
            {
                _bf = value;
            }

        }

        [GField("BFNum")]
        public int BreakfastNum
        {
            get
            {
                return _bfNum;
            }
            set
            {
                _bfNum = value;
            }

        }


        [GField("BFRate")]
        public float BreakfastRate
        {
            get
            {
                return _bfrate;
            }
            set
            {
                _bfrate = value;
            }

        }
    }
}
